/*
 * VotedBinaryClassifier.h
 *
 *  Created on: Apr 11, 2010
 *      Author: Soheil Damangir
 */

#ifndef VOTEDBINARYCLASSIFIER_H_
#define VOTEDBINARYCLASSIFIER_H_
#include <vector>
#include <istream>
#include "BinaryBayesian.h"
namespace Group5 {

class VotedBinaryClassifier {
public:
  VotedBinaryClassifier(std::istream&is);
  bool addClassifier(std::istream&is);
  bool classify(const int*P);
  virtual ~VotedBinaryClassifier();
private:
  bool addClassifier(const BinaryBayesian&classifier);
  std::vector<BinaryBayesian> classifiers;
  std::vector<BinaryBayesian>::iterator it;
  int dim;
};

}

#endif /* VOTEDBINARYCLASSIFIER_H_ */
